<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>安装</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="rar.requirements.html">需求</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="rar.configuration.html">运行时配置</a></div>
 <div class="up"><a href="rar.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="rar.installation" class="section">
  <h2 class="title">安装</h2>
  <p class="para">
   Rar is currently available through PECL
   <a href="http://pecl.php.net/package/rar" class="link external">&raquo;&nbsp;http://pecl.php.net/package/rar</a>.
  </p>
  <p class="para">
   Also you can use the PECL installer to install the Rar extension, 
   using the following command: <strong class="command">pecl -v install rar</strong>.
  </p>
  <p class="para">
   You can always download the <var class="filename">tar.gz</var> package and install Rar by hand:
   <div class="example" id="example-716">
    <p><strong>Example #1 Rar installation</strong></p>
    <div class="example-contents">
<div class="shellcode"><pre class="shellcode">gunzip rar-xxx.tgz
tar -xvf rar-xxx.tar
cd rar-xxx
phpize
./configure &amp;&amp; make &amp;&amp; make install</pre>
</div>
    </div>

   </div>
  </p>
  <p class="para">
   Windows users will enable <var class="filename">php_rar.dll</var> inside
   of <var class="filename">php.ini</var> in order to use these functions.
   <acronym title="PHP Extension and Application Repository">PECL</acronym> 扩展的
<acronym title="Dynamic Link Library">DLL</acronym> 当前不可用。参见
<a href="install.windows.building.html" class="link">在 Windows 上构建</a>章节。
  </p>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="rar.requirements.html">需求</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="rar.configuration.html">运行时配置</a></div>
 <div class="up"><a href="rar.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
